package validate

import "github.com/go-playground/validator/v10"

var validate *validator.Validate

func V() *validator.Validate {
	return validate
}

func init() {
	validate = validator.New()
	//注册其他自定义的校验标签
	//validate.RegisterValidation("validation_tag", func(fl validator.FieldLevel) bool {
	//	数据校验逻辑
	//})
}
